package hu.mapro.flang.gwt.domain.server;

import hu.mapro.model.LongId;

import java.util.Date;
import java.util.Set;

import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJpaActiveRecord
@RooToString
@RooJavaBean
public class Attempt implements LongId {

	@ManyToOne
	Practice practice;
	
    Date timeOfAttempt;

    @OneToMany(mappedBy="attempt")
    Set<AttemptError> errors;

}
